﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using _4T.Data;
using _4T.BLL;

namespace _4T
{
    public partial class ProfileDetail1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.QueryString["p"] != null)
            {
                string profileCode = Request.QueryString["p"].ToString();
                ProfileStageLinkBLL stageBLL = new ProfileStageLinkBLL();
                List<ProfileStageLink> listUrl = stageBLL.GetStageLinkListByProfileCode(profileCode);
                if (listUrl != null && listUrl.Count > 0)
                {
                    ProfileStageLink stage1 = listUrl[0];
                    VideoFilterPath = stage1.VideoLink;
                    //((Label)e.Item.FindControl("lbProposeDate")).Text = stage1.EditTime;
                    if (listUrl.Count > 1)
                    {
                        ProfileStageLink stage2 = listUrl[1];
                        VideoVerifyPath = stage2.VideoLink;
                        //((Label)e.Item.FindControl("lbFilterDate")).Text = stage2.EditTime;
                        //((Label)e.Item.FindControl("lbFilterer")).Text = item.Filter;
                        if (listUrl.Count > 2)
                        {
                            ProfileStageLink stage3 = listUrl[2];
                            VideoApprovePath = stage3.VideoLink;
                            //((Label)e.Item.FindControl("lbVerifyDate")).Text = stage3.EditTime;
                            //((Label)e.Item.FindControl("lbVerifyResult")).Text = stage3.Description;
                            //((Label)e.Item.FindControl("lbVerifier")).Text = item.Verifier;
                            if (listUrl.Count > 3)
                            {
                                ProfileStageLink stage4 = listUrl[3];
                                VideoPaymentPath = stage4.VideoLink;
                                //((Label)e.Item.FindControl("lbApproveDate")).Text = stage4.EditTime;
                                //((Label)e.Item.FindControl("lbMoney")).Text = item.Money;
                                //((Label)e.Item.FindControl("lbApprover")).Text = item.Approver;
                            }
                        }
                    }
                }
            }
        }
        protected string VideoFilterPath { get; set; }
        protected string VideoVerifyPath { get; set; }
        protected string VideoApprovePath { get; set; }
        protected string VideoPaymentPath { get; set; }
    }
}